import os,sys
#获取导入的条数
def get_data_num(args):
   
    with open(args+'\\script\\label_all.txt', 'r', encoding='UTF-8')as f:
        text = f.read()
        f.close()

    sentences = text.split('\n')  # 分句
    num=int(len(sentences)/2)
    string = "已导入"+str(num)+"条记录"
    return string
if __name__ =="__main__":
    args= sys.argv[1]
    try:
    
          value = get_data_num(args)
          print(value)
    except  Exception as e:
         print(e)
   
